﻿@using Coleotrack.Models.Setup
@using Coleotrack.Resources
@model AuthenticationViewModel

@{
    ViewBag.Title = "Welcome";
    Layout = "~/Views/Setup/_Site.cshtml";
}

<h3>Authentication</h3>
@using (Html.BeginForm())
{
    <div class="authentication-settings">
        <p>In this step you create an administrator account to manage coleotrack.</p>
        @Html.ValidationSummary(false, labels.ErrorsOccured)
        <table>
            <tr>
                <td colspan="2" class="required">@Html.LabelFor(x => x.Username)</td>
            </tr>
            <tr>
                <td colspan="2">@Html.TextBoxFor(x => x.Username)</td>
            </tr>
            <tr>
                <td colspan="2" class="required">@Html.LabelFor(x => x.Email)</td>
            </tr>
            <tr>
                <td colspan="2">@Html.TextBoxFor(x => x.Email)</td>
            </tr>
            <tr>
                <td class="required">@Html.LabelFor(x => x.Firstname)</td>
                <td class="required">@Html.LabelFor(x => x.Lastname)</td>
            </tr>
            <tr>
                <td>@Html.TextBoxFor(x => x.Firstname)</td>
                <td>@Html.TextBoxFor(x => x.Lastname)</td>
            </tr>
            <tr>
                <td class="required">@Html.LabelFor(x => x.Password)</td>
                <td class="required">@Html.LabelFor(x => x.Password)</td>
            </tr>
            <tr>
                <td>@Html.PasswordFor(x => x.Password)</td>
                <td>@Html.PasswordFor(x => x.PasswordConfirmation)</td>
            </tr>
        </table>
    </div>

    <div class="commands">
        <div class="prev">@Html.ActionLink("prev", "Database", "Setup")</div>
        <div class="next"><input type="submit" value="next" /></div>
    </div>
}

@section Menu {
    @Html.Partial("_Menu", 3)
}